package com.hutu.model.biz;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 表信息
 * </p>
 *
 * @author admin
 * @since 2023-07-19
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("ht_module")
@ApiModel(value = "Module对象", description = "Module对象")
public class Module implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("模板名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("所属项目")
    @TableField("project_id")
    private String projectId;

    @ApiModelProperty("所属项目")
    @TableField(exist = false)
    private String projectName;

    @ApiModelProperty("模板内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("包名")
    @TableField("package_name")
    private String packageName;

    @ApiModelProperty("组名")
    @TableField("group_name")
    private String groupName;

    @ApiModelProperty("类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("创建人")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Integer createUser;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp updateTime;

    @ApiModelProperty("逻辑删除，0未删除，1已删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("创建人姓名")
    @TableField(value = "create_user_name", fill = FieldFill.INSERT_UPDATE)
    private String createUserName;

//    @TableField("params")
//    private String params;
}
